<include file="Public:top" />        
     <script>
        $(function() {
		  $(".status .light").click(function(){		
			   var id = $(this).parent().parent().attr("id");
			   $.get("{:U('changeInnerStatus')}", { id: id },
				function(data){
					 $("#"+id).find("span").removeClass("current");
				 	 if (data == 1)
					 {
						 $("#"+id).find("span").eq(0).addClass("current");
					 }
					 else
					 {
						 $("#"+id).find("span").eq(1).addClass("current");
					 }
				}); 
		  })		  
        });	
		
		</script>

	</head>
  
	<body>
    
    

    

    
    <div id="body-wrapper" > <!-- Wrapper for the radial gradient background -->		

        <!--left start-->
		
        <include file="Public:left" /> 
        <!--left end-->
        
        
        <!-- End #sidebar -->			
		<div id="main-content"> <!-- Main Content Section with everything -->
        <div  id="header_logo">{:C("SITE_INFO.name")}</div>	 		
			
			<!-- Page Head -->
			<div style="float:left;">
			  <h2> <a href="{:U('index')}">{$category}</a></h2></div>

            
			<div class="clear"></div> <!-- End .clear -->
			
            <br>
             {$msg}
             
               <div class="content-box"><!-- Start Content Box -->                  
                  <div class="content-box-header">  
                   <span class="insert" style=" float:right; line-height:40px; font-size:14px; font-weight:bold;"> <a href="{:U('index')}">Back</a>&nbsp; &nbsp; </span>
                   <span class="insert" style=" float:right; line-height:40px; font-size:14px; font-weight:bold;"> <a href="{:U('inner_detail',array('cid'=>$cid))}">+ insert</a>&nbsp; &nbsp; </span>
                   
                    <div class="clear"></div>                      
                  </div> <!-- End .content-box-header -->
                  
                  <div class="content-box-content">
                      <div class="tab-content default-tab" id="tab1">                       
                      <!-- This is the target div. id must match the href of this div's tab -->	
                      
                          
                          <table>
                            <thead>
                              <tr>								   
                                 <!-- <th>ID</th>-->
                                  <th >Title{:createUpDownLink('inner_title','inner_index')}</th>
                                  <th >Speaker{:createUpDownLink('speaker','inner_index')}</th>
                                  <th >Date{:createUpDownLink('date','inner_index')}</th>        
                                  <!-- <th >Sort Order{:createUpDownLink('sort_order','inner_index')}</th>  -->
                                  <th   style="text-align:center">Status</th>                                                                 
                                  <th  width="200" style="text-align:center"></th>									   						 
                              </tr>								
                            </thead> 
                            <tbody>                             
                               <volist name="listing" id="vo" mod="2" >            
                                 <tr <eq name="mod" value="1">class="alt-row"</eq>>	
                                    <td style="font-size:14px;vertical-align:middle">{$vo.inner_title}</td>  
                                     <td style="vertical-align:middle">{$vo.speaker}</td>  
                                    <td style="vertical-align:middle">{$vo.date}</td>        
                                   <!--  <td style="vertical-align:middle">{$vo.sort_order}</td>        -->                             
                                   <td style="text-align:center; vertical-align:middle" id="{$vo.inner_id}" class="status">
                                    
                                    <if condition="$vo.status ==1">
                                      <span  class="hidden current"><img src="__PUBLIC__/images/icons/status_green.gif" />&nbsp;&nbsp;<img src="__PUBLIC__/images/icons/status_red_light.gif"  class="light"/></span>
                                      <span  class="hidden"><img src="__PUBLIC__/images/icons/status_green_light.gif" class="light" />&nbsp;&nbsp;<img src="__PUBLIC__/images/icons/status_red.gif" /></span>
                                    <else />
                                      <span  class="hidden" ><img src="__PUBLIC__/images/icons/status_green.gif" />&nbsp;&nbsp;<img src="__PUBLIC__/images/icons/status_red_light.gif" class="light" /></span>
                                      <span  class="hidden current"><img src="__PUBLIC__/images/icons/status_green_light.gif" class="light" />&nbsp;&nbsp;<img src="__PUBLIC__/images/icons/status_red.gif" /></span>
                                    </if>                                    
                                    </td>
                                   
                                    <td style="text-align:center; vertical-align:middle">   
                                      <a href="{:U('inner_detail',array('cid'=>$cid,'pid'=>$vo['inner_id']))}" title="Edit">Edit</a> &nbsp; &nbsp;                              
                                      <a href="{:U('deleteInner',array('cid'=>$cid,'id'=>$vo['inner_id']))}" onClick="return confirm('Delete this {$title} >> {$vo['inner_title']}?')"  title="Delete">Delete</a> 
                                    </td>  
                                              
                                 </tr>
                               </volist>
                            </tbody>
                          </table>
                          <div class="pagination">{$page}<div style=" clear:both;"></div></div>						
                      </div> <!-- End #tab1 -->	
                                       
                      
                  </div> <!-- End .content-box-content -->
                  
              </div> <!-- End .content-box -->
                       
			
			
			<div class="clear"></div>
			
			
			<!-- Start Notifications -->
			
			

			
			<!-- End Notifications -->
			
            <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2013
				</small>
			</div>
			
			
			
			<!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div>
	
	
	
	</body>
<!-- Download From www.exet.tk-->
</html>

		

